
<div id="timkiem">
            <form method="post" action="<?php echo base_url();?>search"> 
                <div class="search_select">
                    <select class="select" title="Select one" name="hangsx">
                    <option value="0">Nhà sản xuất</option>
                        <?php
                        if(!empty($sx)){
                            foreach ($sx as $sx){
                                echo '
                                <option value="'.$sx->id.'">'.$sx->title.'</option>
                                ';
                            }
                        }
                        ?>                            
                    </select>
                </div>
             
                <div class="search_select">
                    <select class="select" title="Select one" name="cat">
                    	<option value="0">Chọn danh mục</option> 
                        <?php
                        if(!empty($cate)){
                            foreach ($cate as $cate){
                                echo '
                                <option value="'.$cate->id.'">'.$cate->title.'</option>
                                ';
                            }
                        }
                        ?>                        
                    </select>
                </div>          
                <div class="variation1 search_select">         
                    <select class="select" name="timtheo">
                        <option value="0"> Tìm kiếm theo</option>
                        <option value="1"> Tên sản phẩm</option>
                        <option value="2"> Mã sản phẩm</option>                
                    </select>	
                </div>
                <div id="input_seart">
                <input name="txt_search" type="text"/>
                </div>   
                <div class="seart_submit">
                <input style="cursor:pointer;" type="submit" value="Tìm kiếm" />
                </div>  
            </form>
    
        </div>
        
    <!--select box-->
    <script type="text/javascript">
	$(document).ready(function(){ 
		if (!$.browser.opera) {
    
			// select element styling
			$('select.select').each(function(){
				var title = $(this).attr('title');
				if( $('option:selected', this).val() != ''  ) title = $('option:selected',this).text();
				$(this)
					.css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
					.after('<span class="select">' + title + '</span>')
					.change(function(){
						val = $('option:selected',this).text();
						$(this).next().text(val);
						})
			});

		};
		
	});
</script>
<!--end select box--> 